package aryn.blog.dialog;

import javax.swing.JButton;
import javax.swing.JFrame;

public class Test {
	
	public static void main(String[] args) {
		JFrame frame = new JFrame("Show Message Dialog");
		
		ImageDialog dialog = new ImageDialog(frame);
		JButton a = dialog.generateButton("C:\\1.jpg", 20, 50, "Lancill.blogspot.it: A");
		JButton b = dialog.generateButton("C:\\2.png", 40, 250, "Lancill.blogspot.it: B");
		frame.add(a);
		frame.add(b);
		
		frame.setSize(500, 500);
		frame.setLayout(null);
		frame.setVisible(true);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}
